#include <func.h>

int main()
{
    const char * ip = "192.168.30.129";
    struct in_addr addr;
    inet_aton(ip, &addr);
    printf("addr: %d\n", addr.s_addr);
    printf("addr: %08x\n", addr.s_addr);

    char * pip = inet_ntoa(addr);
    printf("pip: %s\n", pip);

    return 0;
}

